﻿<Window x:Class="ContentControl"
    xmlns:local="clr-namespace:DataBinding"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="ContentControl" Height="203" Width="346">
    <Window.Resources>
        <DataTemplate DataType="{x:Type local:Person}">
            <local:CustomerView />
        </DataTemplate>
    </Window.Resources>
    
    <Grid DataContext="{x:Static local:Data.Person}">
        <ContentControl Content="{Binding}" />
    </Grid>
</Window>
